#ifndef ServeurTCP_h
#define ServeurTCP_h

using namespace std;

#include "Hote.h"
#include <string>
#include "stdio.h"
#include <cstdlib>

#include <pthread.h>

class ServeurTCP: public Hote
{

 private :
   struct sockaddr_in adrBrDistante;


 public:
 ServeurTCP();
 ServeurTCP(int,int,ActionListenner*);
 int accepter();
 void envoyer(string,int);
 string recevoir (int);
 void creationThread(int);

 static void* fonctionThread(void*);


};

typedef struct ArgThread{
  ServeurTCP * serveur;
  int descBrCv;
  pthread_mutex_t verrou;
}argThread; 

#endif
